using System;
using L=Science.Physics.GeneralPhysics;

namespace Serway.Chapter43
{
	/// <summary>
	/// Example01: Rotation of the CO Molecule
	/// The J=0 to J=1 rotational transition of the CO molecule 
	/// occurs at a frequency of 1.15 \times 10^{11} Hz.
	/// (A)	
	/// Use this information to calculate the moment of 
	/// inertia of the molecule.
	/// (B)	
	/// Calculate the bond length of the molecule.
	/// </summary>
	public class Example01
	{
		public Example01()
		{
		}
		private string result;
		public string Result
		{
			get{return result;}
		}
		public void Compute()
		{
			L.Molecule CO = new L.Molecule();
			CO.MomentOfInertia = 1.46E-46;
			CO.RotationalQuantumNumber = 1;
			double Ei = CO.RotationalEnergy;
			CO.RotationalQuantumNumber = 0;
			double Ef = CO.RotationalEnergy;
            result+=Convert.ToString((Ei - Ef)/L.Constant.PlankConstant);
		}
	}
}
